﻿@model IEnumerable<SportMeetingPlanner.Models.Sport>
@{
    ViewBag.Title = "Manage Sports";
}
<br />
<div class="section">
    <table cellspacing="0" class="listTable">
        <tr>
            <td class="headerColumn" colspan="2">
                Sport management
            </td>
        </tr>
        <tr>
            <td>
                <br />
            </td>
            <td>
            </td>
        </tr>
        <tr onclick="DoNav('@Url.Content("~/SportManager/Create")');" class="link">
            <td class="leftColumn" colspan="2">
                Create New Sport
            </td>
        </tr>
        <tr>
            <td>
                <br />
            </td>
            <td>
            </td>
        </tr>
        @foreach (var item in Model)
        {
            <tr onclick="DoNav('@Url.Content("~/SportManager/Details?Id=" + item.SportId)');" class="link">
                <td class="leftColumn">
                    @Html.DisplayFor(modelItem => item.Name)
                </td>
                <td style="padding-right: 20px;">
                </td>
            </tr>
        }
        <tr>
            <td>
                <br />
            </td>
            <td>
            </td>
        </tr>
        <tr class="back">
            <td class="leftColumn" colspan="2">
                @Html.ActionLink("Back", "Index", "Home")
            </td>
        </tr>
    </table>
</div>
